<?php
namespace app\index\model;

use think\Model;
use think\Db;

/**
 * 营销区域
 * Class Zoning
 * @package app\index\model
 */
class Zoning extends Model
{
    protected $table = 'cg_market_zoning';
    //自定义初始化
    protected function initialize()
    {
        //需要调用`Model`的`initialize`方法
        parent::initialize();
        //TODO:自定义的初始化
    }


    public function select(){

    	$arr=Db::table($this->table)->field("id,title")->select();

    	return $arr;
    }

}
    
?>